<h1><span></span><?= lang('label_favorite_stores') ?></h1>

<ul class="breadcrumb">
    <li><a href="<?= base_url() ?>"><?= lang('label_home') ?></a></li>
    <li><a href="<?= base_url('user/profile') ?>"><?= lang('label_profile') ?></a></li>
    <li><?= lang('label_favorite_stores') ?></li>
</ul>

<div class="page">

    <?php $this->load->view('template/default/user/top') ?>

    <div style="overflow:hidden;">

        <?php $this->load->view('template/default/user/side') ?>

        <div class="profile_page">
            <h2 class="profile_page_title"><?= lang('label_profile') ?> &raquo; <strong><?= lang('label_favorite_stores') ?></strong></h2>
            <?php if ($stores) { ?>
                <ul class="favo_stores">
                    <?php foreach ($stores as $key => $value) {
                        ?>
                        <li>
                            <span><img src="<?= base_url(STORE_PATH . $value['logo']) ?>" alt="" /></span><a href="<?= base_url('store/index/' . $key) ?>"><?= $value['name'] ?></a>
                        </li>
                    <?php } ?>
                </ul>
            <?php } else { ?>
                <div class="unsaved">
                    <img src="<?php echo str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?php echo APPPATH ?>views/<?php echo $this->themes->Cms_themes() ?>/images/unsaved.png" alt="" />
                    <br /><?= lang('message_no_stores_favorite') ?>
                </div>
                <br /><br /><br /><br />
            <?php } ?>
        </div>
    </div>
</div>